package com.atguigu.srb.servicesms.client;

import com.atguigu.srb.common.result.Result;
import com.atguigu.srb.servicesms.client.imp.CoreClientFallback;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * ClassName: CoreClient
 * Package: com.atguigu.srb.servicesms.client
 * Description:
 *
 * @Author 王晓龙
 * @Create 2023/4/4 18:31
 * @Version 1.0
 */
@FeignClient(value="service-core", fallback = CoreClientFallback.class)
public interface CoreClient {
    @ApiOperation("判断手机号是否已被注册")
    @GetMapping("/api/core/userInfo/isUsed/{mobile}")
    public Result isUsed(@PathVariable("mobile") String mobile);
}
